import request from '@/utils/request'

// 查询花列表
export function listFlowerpotCompany(query) {
  return request({
    url: '/flowerpot/company/list',
    method: 'get',
    headers: {
        isToken: false
    },
    params: query
  })
}

//添加花盆公司
export function FlowerpotCompanyAdd(data) {
    return request({
      url: '/flowerpot/company/add',
      method: 'post',
      data: data
    })
  }

  //添加花盆
  export function addFlowerpot(data) {
    return request({
      url: '/flowerpot/add',
      method: 'post',
      data: data
    })
  }
  //删除花盆
  export function delFlowerpot(id) {
    return request({
        url: '/flowerpot/' + id,
        method: 'delete'
    })
}
//删除种类哦
export function delFlowerpotType(id) {
    return request({
        url: '/flowerpot/type/' + id,
        method: 'delete'
    })
}
//删除花盆公司
export function delCompany(id) {
    return request({
        url: '/flowerpot/company/' + id,
        method: 'delete'
    })
}


  export function addFlowerpotType(data) {
    return request({
      url: '/flowerpot/type/add',
      method: 'post',
      data: data
    })
  }

  export function queryFlowerpot(query) {
    return request({
      url: '/flowerpot/list',
      method: 'get',
      params: query
    })
}

// 查询花分类
export function typeFlower(query) {
    return request({
      url: '/flowerpot/type/list',
      headers: {
        isToken: false
      },
      method: 'get',
      params: query
    })
}



export function delFlower(id) {
    return request({
        url: '/flower/id/' + id,
        method: 'delete'
    })
}
export function delFlorist(id) {
    return request({
        url: '/flower/florist/' + id,
        method: 'delete'
    })
}

  export function addFlower(data) {
    return request({
      url: '/flower/add',
      method: 'post',
      data: data
    })
  }
  
  export function listFlorist(query) {
    return request({
      url: '/flower/florist',
      headers: {
        isToken: false
      },
      method: 'get',
      params: query
    })
  }
  export function addFlorist(data) {
    return request({
      url: '/flower/florist/add',
      method: 'post',
      data: data
    })
  } 
  export function addFlorists(data) {
    return request({
      url: '/flower/florists/add',
      method: 'post',
      data: data
    })
  }
  export function delFlorists(id) {
    return request({
        url: '/flower/florists/' + id,
        method: 'delete'
    })
}
  
  
